[Test] Fix: expand ~ in CCACHE_CONFIGPATH for macOS builds#1
Open
[Test] Fix: expand ~ in CCACHE_CONFIGPATH for macOS builds#1
Conversation
- Use os.path.expanduser() to properly expand ~ in ccache config path - Fixes FileNotFoundError on macOS builds in cibuildwheel - Resolves CI failure in PR Cytnx-dev#711
- Create symlink from /usr/include/openblas/cblas.h to /usr/include/cblas.h - Fixes compilation error: 'cblas.h: No such file or directory' - Similar to existing lapacke.h, lapack.h symlinks
- cblas.h requires openblas_config.h - Create symlink from /usr/include/openblas/openblas_config.h
- Add CPATH to environment to include /usr/include/openblas - Create symlinks for all OpenBLAS headers - Fixes openblas_config-x86_64.h not found error
- Install gcc-c++, glibc-devel, kernel-headers - Fixes math.h not found error with gcc-toolset-14
- Add CFLAGS and CXXFLAGS with -I/usr/include for Linux builds - Helps gcc-toolset-14 find standard headers like math.h - macOS configuration unchanged
- Install gcc-c++, glibc-devel, kernel-headers - Add cblas.h and openblas_config.h symlinks - Use ln -sf to force overwrite - Add verification steps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Testing the fix for macOS CI failure before submitting to upstream.
Fix: Added
os.path.expanduser()to expand~in ccache config path.Test:
FileNotFoundError: '~/test_ccache.conf'/home/user/test_ccache.confRelated upstream PR: Cytnx-dev#741